package com.construction.api.service;

import com.construction.api.domain.entity.SysUser;
import com.construction.api.domain.model.header.Header;
import com.construction.api.domain.vo.TokenVO;

/**
 * @author dybin
 * @Date: 2021/7/2 21:50
 */
public interface TokenService<T> {

    TokenVO allocateToken(SysUser sysUser);

    default boolean isSkip(Object handler) {
        return true;
    }

    boolean verifyToken(Header header);

    T resolvToken(Header header);

    TokenVO refreshToken(String desToken);


}
